#include "irfid.h"

u8 Read_card(u8 addr)
{
    printf("read addr: %d, data: ----------\n",addr);
    return STATUS_OK;
}
u8 Read_ID()
{
    printf("id: 19140827\n");
    return STATUS_OK;
}
u8 Write_card(u8 addr,u8 *data)
{
    printf("write addr: %d, data: ----------\n",addr);
    return STATUS_OK;
}

u8 Auth_block(u8 mode,u8 addr,u8 *key)
{
    switch(mode)
    {
        case KEY_A:
            printf("KEY_A, Addr: %d, ",addr);
            for(int i=0;i<6;i++)
                printf("%#X ",key[i]);
            printf("\n");
            break;
        case KEY_B:
            printf("KEY_B, Addr: %d, ",addr);
            for(int i=0;i<6;i++)
                printf("%#X ",key[i]);
            printf("\n");
            break;
        default:
            break;
    }
    return STATUS_OK;
}
